package com.yun.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.yun.dao.TesterDao;
import com.yun.entity.Tester;
import com.yun.service.TesterService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * (Tester)表服务实现类
 *
 * @author makejava
 * @since 2021-11-25 09:45:30
 */
@Service("testerService")
public class TesterServiceImpl extends ServiceImpl<TesterDao, Tester> implements TesterService {
    //这里不使用@Autowired,它只按照byType注入
    //@Resource默认按照ByName自动注入

    @Resource
    private TesterDao testerDao;


    @Override
    public Tester findByName(String username) {
        return testerDao.findByName(username);
    }

    @Override
    public Tester checkPhone(String phone) {
        return testerDao.checkPhone(phone);
    }
}

